package server.movement;

import tools.data.output.MaplePacketLittleEndianWriter;

import java.awt.*;

public class UnknownMovement extends AbsoluteLifeMovement {

    private int fh;

    public UnknownMovement(int type, Point position, int duration, int newstate) {
        super(type, position, duration, newstate);
    }

    public int getFh() {
        return fh;
    }

    public void setFh(int fh) {
        this.fh = fh;
    }

    @Override
    public void serialize(MaplePacketLittleEndianWriter lew) {
        lew.write(getType());
        lew.writeShort(getFh());
        lew.write(getNewstate());
        lew.writeShort(getDuration());
        lew.write(getEnd());
    }

    @Override
    public Point getPosition() {
        return new Point(0, 0);
    }
}
